@bg_color: #b7d4a8;
* {
  margin: 0;
  height: 0;
  box-sizing: border-box;
}
body, html {
  height: 100%;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
}
#main {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  width: 360px;
  height: 420px;
  background-color: @bg_color;
  border: 10px solid;
  border-radius: 10px;
  #stage {
    position: relative;
    width: 304px;
    height: 304px;
    border: 2px solid;
    #snake {
      &>div {
        position: absolute;
        width: 10px;
        height: 10px;
        background-color: #000;
        border: 1px solid @bg_color;
      }
      
    }
    #food {
      position: absolute;
      left: 50px;
      top: 50px;
      width: 10px;
      height: 10px;
      display: flex;
      flex-flow: row wrap;
      justify-content: space-between;
      align-content: space-between;
      &>div {
        width: 4px;
        height: 4px;
        background-color: #f00;
        transform: rotate(45deg);
      }
    }
  }
  #scorepanel {
    width: 300px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
}